package diff.viewer;

import java.awt.Graphics;
import javax.swing.JComponent;
import javax.swing.JSplitPane;
import javax.swing.plaf.basic.BasicSplitPaneDivider;
import javax.swing.plaf.basic.BasicSplitPaneUI;

/**
 * @author WL
 */
public class DiffSplitPaneUI extends BasicSplitPaneUI {

    final DiffSplitPaneDivider divider;

    public DiffSplitPaneUI(JSplitPane splitPane) {
        this.splitPane = splitPane;
        divider = new DiffSplitPaneDivider(this);
    }

    public BasicSplitPaneDivider createDefaultDivider() {
        return divider;
    }
    
    public void paint(Graphics g, JComponent comp)
    {
        super.paint(g, comp);
    }
}